package com.czx.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
@Data
@TableName("discuss_post")
public class DiscussPost {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private Integer userId;
  private String title;
  private String content;
  private Integer type;
  private Integer status;
  private Date createTime;
  private Integer commentCount;  //评论数
  private double score; //点赞数
  @TableField(exist = false)
  private Integer postId;

}
